var today = new Date();
var year = today.getFullYear() + 1;
var month = today.getMonth() + 1;
var day = today.getDate();
var ymd = year + "" + month + "" + day;
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
var bsdfp = null;
oScript.async = true;
oScript.type = "text/javascript";
oScript.src =
  "https://dfp.cmft.com.cn/dfp/public/downloads/frms-fingerprint.js?custID=dfp&serviceUrl=https://dfp.cmft.com.cn/dfp/public/generate/jsonp&channel=WEB&autoExec=false&ymd=" +
  ymd;
oHead.appendChild(oScript);
oScript.onload = function () {
  bsdfp = new BSDeviceFingerprint();
  var op = {
    extendFields: []
  };
  bsdfp.getFingerprint(op, function (dfpInfo) {
    window.localStorage.JK_dfpInfo = JSON.parse(dfpInfo).dfp;
    console.log(JSON.parse(dfpInfo).dfp);
  });
}